package com.framework.plm.bas.util;



public class PlmBasConstant {

	/**
	 * APP的固定常量
	 */
	public static final int TX_REQUIRED=1;//需要事务
	public static final int TX_REQUIRED_NEW=2;//需要新事务
	public static final String APP_SERVICE="_app_service";//交易码
	public static final String APP_SERVICE_OBJECT="_app_service_object";//交易码配置对象
	public static final String APP_PROCESS_OBJECT="_app_process_object";//处理码配置对象
	public static final String APP_QUERY_ISSIZE="_app_query_issize";//是否查记录数
	public static final String APP_USER="_app_user";//操作用户
	public static final String APP_SERVICE_LOG="_app_service_log";//系统交易日志
	public static final String APP_SYS_FLAG="_app_sys_flag";//系统标记
	public static final String APP_VALID_ID="_app_valid_id";//查询码
		
	/**
	 * 系统固定常量
	 */
	public static final String SERVICE_HANDLE_START="0"; //交易开始
	public static final String SERVICE_HANDLE_SUCESS="1"; //交易成功
	public static final String SERVICE_HANDLE_FAIL="2"; //交易失败
	public static final int SERVICE_MEMO_LENGTH = 255;
	public static final String BAS_PER_PAGESIZE = "BAS_PER_PAGESIZE"; //页面参数定义
	public static final String VISIT_STEP_CENTER = "VISIT_STEP_CENTER"; //跨中心访问
	public static final String DEMO_SYSTEM ="DEMO_SYSTEM"; //是否演示系统
	public static final String HELP_EMAIL_USER = "HELP_EMAIL_USER"; //邮件用户
	public static final String HELP_EMAIL_PASS = "HELP_EMAIL_PASS"; //邮件密码
	public static final String HELP_EMAIL_SMTP = "HELP_EMAIL_SMTP"; //邮件中心

	/**
	 * 客户端请求页面
	 */
	public static final String REQ_JSON_TOTALRECORD="_req_json_totalrecord"; //总记录数
	public static final String REQ_JSON_CURPAGENO="_req_json_curpageno"; //当前页码
	public static final String REQ_JSON_TOTALPAGE="_req_json_totalpage"; //总页码
	public static final String REQ_JSON_PAGESIZE="_req_json_pagesize"; //每页记录数
	
	/**
	 * 交易类型定义
	 */
	public static final int SERVICE_FUNC_TRADE = 0;//基本交易型
	public static final int SERVICE_FUNC_ATOM = 1;//公用型交易
	public static final String FUNC_TYPE_MAINTAIN="01";//功能码：维护类
	public static final String FUNC_TYPE_AUTOTASK="02";//功能码：自动类
	
	/**
	 * 交易长度定义
	 */
	public static final int SERVICE_LENGTH = 11;
	public static final int SERVICE_NUMBIT = 2;
	
	/**
	 * 使用标记
	 */
	public static final String USED_FLAG = "1";//使用
	public static final String STOP_FLAG = "0";//停用
	
	/**
	 * 常量表配置查询每页记录数的key。
	 */
	public static final String KEY_PAGESIZE = "PLM_BAS_PAGESIZE";
	
	/**
	 * 主键序列不存在
	 */
	public static final String MSG_0000 = "ehand.plm.bas.0000";
	
	/**
	 * 页面初始化失败
	 */
	public static final String MSG_0001 = "ehand.plm.bas.0001";
	
	/**
	 * 功能[{0}]下没有定义交易[{1}]
	 */
	public static final String MSG_0002 = "ehand.plm.bas.0002";
	
	/**
	 * 交易：[{0}]对应功能：[{1}]尚未定义
	 */
	public static final String MSG_0003 = "ehand.plm.bas.0003";
	
	/**
	 * 原子交易：[{0}]没有定义新事务模式
	 */
	public static final String MSG_0004 = "ehand.plm.bas.0004";
	
	/**
	 * 查询请求没有包含必要的JSON参数
	 */
	public static final String MSG_0005 = "ehand.plm.bas.0005";
	
	/**
	 * 登陆用户SESSION常量
	 *
	 */
	public static final String SES_USER_NAME = "_ses_user_name";
	public static final String SES_USER_LOGON_INFO = "_ses_user_object";
	public static final String SES_USER_AUTH_OBJECT = "_ses_user_auth_object";
	public static final String SES_CONTEXT_PATH = "_ses_context_path";
	public static final String SES_SYS_FLAG = "_ses_sys_flag";
	public static final String SES_VALID_ID = "_ses_valid_id";
	public static final String SES_COOPERATE_CODE = "_ses_cooperate_code";
	public static final String SES_DOMAIN_NAME = "_ses_domain_name";
	public static final String SES_DOMAIN_DIR = "_ses_domain_dir";
	public static final String SES_DOMAIN_SYSPATH = "_ses_domain_syspath";
	public static final String SES_DOMAIN_SYSNAME = "_ses_domain_sysname";
	public static final String SES_DOMAIN_REGINFO = "_ses_domain_reginfo";
	
	/**
	 * 系统应用常量
	 *
	 */
	public static final String SYS_CUR_CENTER = "_sys_cur_center";
	public static final String SYS_ALL_CENTER = "_sys_all_center";
	public static final String SYS_STEP_CENTER = "_sys_step_center";
	public static final String SYS_DEMO_SYSTEM = "_sys_demo_system";
	public static final String SYS_MESSAGE_PRE = "app.message.prefix";
	
	/**
	 * IBATIS-SQL处理
	 * 
	 */
	public static final String SQLID_BAS_CONSTANT_INFO = "plm_bas.constantInfo";
	
	/**
	 * 主键层次判断
	 */
	public static final String ID_LEVEL_TOP = "0";
	public static final String ID_LEVEL_BOTTOM = "1";
	
	/**
	 * 父级主键依赖关系判断
	 */
	public static final String SUPER_CODE_LEVEL_TOP = "0";
	public static final String SUPER_CODE_LEVEL_BOTTOM = "1";
	
	/**
	 *短信发送常量 
	 */
	public static final String MOBILE_SENDMSG_URL="MOBILE_SENDMSG_URL";
	public static final String MOBILE_NAME="MOBILE_NAME";
	public static final String MOBILE_PSW="MOBILE_PSW";
	public static final String MOBILE_SRC="MOBILE_SRC";
	
	/**
	 *身份扣款免费常量 
	 */
	public static final String IDENTIFY_FREE="IDENTIFY_FREE";
	public static final String SERVICE_OPER_SUCCESS = "1";
}
